package cn.superchart.common.base;
import cn.superchart.common.utils.ScUserContext;
import org.springframework.beans.factory.annotation.Autowired;


public class BaseController<Service extends BaseService>{

    @Autowired(required = false)
    protected Service service;


    protected String getUserId(){
        return ScUserContext.getUserId();
    }

    protected String getUserId(boolean force){
        return ScUserContext.getUserId(force);
    }

    protected String getAccount(){
        return ScUserContext.getAccount();
    }

}